package org.example.market_spring.service;

import org.example.market_spring.entity.Admin;
import org.example.market_spring.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;

    public Admin queryByUsernameAndPassword(Admin admin){
        return adminMapper.queryByUsernameAndPassword(admin);
    }


}
